package com.dlc.shop.seckill.api.param;

import com.dlc.shop.bean.app.param.OrderParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 秒杀下单需要的参数
 *
 * @author Yami
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "秒杀下单参数")
public class SeckillOrderParam extends OrderParam {

    @NotNull(message = "秒杀商品skuId不能为空")
    @Schema(description = "秒杀商品skuId" , requiredMode = Schema.RequiredMode.REQUIRED)
    private Long seckillSkuId;
}
